//
//  HBStringListView.h
//  HBLibary
//
//  Created by Rambo on 2018/11/4.
//

#import <UIKit/UIKit.h>

typedef void(^KDEStringListViewTapBlock)(NSString *string, NSInteger index);

@interface HBStringListView : UIView

@property (nonatomic, assign) UIEdgeInsets stringInsets;    ///< 边缘间隙  默认(3, 3, 3, 3)

@property (nonatomic) CGFloat minimumLineSpacing;   ///< item上下间隙 默认 ：3

@property (nonatomic) CGFloat minimumInteritemSpacing;  ///< item左右间隙 默认：3

@property (nonatomic, strong) UIFont *titleFont;        ///< 默认 14号字体

@property (nonatomic, strong) UIColor *textColor;       ///< 默认黑色

@property (nonatomic, strong) UIColor *stringBackgroundColor;   ///< 默认灰色

@property (nonatomic, assign) CGFloat radius;           ///< 默认 0

@property (nonatomic, copy) NSArray <NSString *>*titles;               ///< 字符串数组

@property (nonatomic, copy) KDEStringListViewTapBlock tapBlock;     ///< 点击回调

@property (nonatomic, assign) UIEdgeInsets contentInsets;           ///< 整体边缘间隙

@property (nonatomic, assign) NSInteger numberOfLines;              ///< 默认 1行

@end
